﻿using System;

public class calculator
{
    public static void Main(string[] args)
    {
        double a, b;
        System.Console.Write("Please enter two numbers!\n");
        a = Double.Parse(Console.ReadLine());
        b = Double.Parse(Console.ReadLine());
        char c;
        System.Console.Write("Please enter an operator!\n");
        c = (char)System.Console.Read();

        switch (c)
        {
            case '+': System.Console.Write(a + "+" + b + "=" + (a + b)); break;
            case '-': System.Console.Write(a + "-" + b + "=" + (a - b)); break;
            case '*': System.Console.Write(a + "*" + b + "=" + (a * b)); break;
            case '/': System.Console.Write(a + "/" + b + "=" + (a / b)); break;
            default: System.Console.Write("Please enter the correct operator！"); break;
        }

    }
}